package cn.tedu;

import javax.swing.plaf.nimbus.State;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

public class Demo02 {
    public static void main(String[] args) {
        try (Connection conn = DBUtils.getConn();){
            Statement s = conn.createStatement();
            s.executeUpdate("insert into hero values(null,'诸葛黑','法师'),(null,'孙尚臭','射手')");
            System.out.println("执行完成!");

        } catch (SQLException throwables) {
            throwables.printStackTrace();
        }
    }
}
